//returngoods.js

Page({
  data: {
    checked: true,
    checked2: false,
    index:0,
    array: ['未按约定时间发货', '商品与描述不符', '质量问题']
  },
  onLoad: function () {
    let that = this;
    
  },
  returnType: function (e) {
    let that = this;
    let returnTypeCode = e.detail.value;
    if (returnTypeCode == '0') {
      that.setData({
          checked: true,
          checked2:false
      })
    } else {
      that.setData({
          checked: false,
          checked2:true
      })
    }
  },
  refundReasons: function (e) {
    let that = this;
    that.setData({
      index:e.detail.value
    })
  }
})